/*
 * @Author: 高瑞寒 15932717091@163.com
 * @Date: 2022-05-24 00:28:10
 * @LastEditTime: 2022-05-25 16:50:35
 * @LastEditors: 高瑞寒 15932717091@163.com
 * @Description: 
 */
import './style/index.less'
import './style/iconfont/iconfont.css'

import popup from './components/Popup/popup'
/* 引入video */
import video from './components/Video/video'


const lis = document.querySelectorAll('.itemBox')

const length = lis.length
for (let i = 0; i < length; i++) {
  lis[i].addEventListener('click', () => {
    const url:string = <string>lis[i].getAttribute('data-video')
    console.log(video);
    popup({
      width: '880px',
      title: '小米10 青春版 发布会',
      pos: 'center',
      mask: true,
      content: (el) => {
        video({
          url,
          el
        })

      }
    });


  })
}
